package com.example.administrator.weather;

import java.util.List;

/**
 * Created by Administrator on 2016/9/4.
 */
public class WeathJsonBean {


    /**
     * msg : success
     * result : [{"airCondition":"轻度污染","city":"南京","coldIndex":"低发期","date":"2016-09-04","distrct":"南京","dressingIndex":"薄短袖类","exerciseIndex":"不适宜","future":[{"date":"2016-09-04","dayTime":"多云","night":"多云","temperature":"33°C / 22°C","week":"今天","wind":"东风 小于3级"},{"date":"2016-09-05","dayTime":"多云","night":"阴","temperature":"33°C / 23°C","week":"星期一","wind":"东风 小于3级"},{"date":"2016-09-06","dayTime":"阴","night":"阴","temperature":"28°C / 22°C","week":"星期二","wind":"东北风 3～4级"},{"date":"2016-09-07","dayTime":"多云","night":"多云","temperature":"31°C / 21°C","week":"星期三","wind":"东风 3～4级"},{"date":"2016-09-08","dayTime":"多云","night":"多云","temperature":"33°C / 22°C","week":"星期四","wind":"西北风 3～4级"},{"date":"2016-09-09","dayTime":"多云","night":"多云","temperature":"33°C / 22°C","week":"星期五","wind":"东风 3～4级"},{"date":"2016-09-10","dayTime":"局部多云","night":"少云","temperature":"32°C / 21°C","week":"星期六","wind":"东风 3级"},{"date":"2016-09-11","dayTime":"少云","night":"少云","temperature":"32°C / 21°C","week":"星期日","wind":"东北偏东风 3级"},{"date":"2016-09-12","dayTime":"局部多云","night":"少云","temperature":"32°C / 21°C","week":"星期一","wind":"东北偏东风 3级"},{"date":"2016-09-13","dayTime":"局部多云","night":"局部多云","temperature":"32°C / 21°C","week":"星期二","wind":"东风 3级"}],"humidity":"湿度：31%","pollutionIndex":"109","province":"江苏","sunrise":"05:42","sunset":"18:25","temperature":"31℃","time":"15:12","updateTime":"20160904152751","washIndex":"不适宜","weather":"多云","week":"周日","wind":"东北风2级"}]
     * retCode : 200
     */

    public String msg;
    public String retCode;
    /**
     * airCondition : 轻度污染
     * city : 南京
     * coldIndex : 低发期
     * date : 2016-09-04
     * distrct : 南京
     * dressingIndex : 薄短袖类
     * exerciseIndex : 不适宜
     * future : [{"date":"2016-09-04","dayTime":"多云","night":"多云","temperature":"33°C / 22°C","week":"今天","wind":"东风 小于3级"},{"date":"2016-09-05","dayTime":"多云","night":"阴","temperature":"33°C / 23°C","week":"星期一","wind":"东风 小于3级"},{"date":"2016-09-06","dayTime":"阴","night":"阴","temperature":"28°C / 22°C","week":"星期二","wind":"东北风 3～4级"},{"date":"2016-09-07","dayTime":"多云","night":"多云","temperature":"31°C / 21°C","week":"星期三","wind":"东风 3～4级"},{"date":"2016-09-08","dayTime":"多云","night":"多云","temperature":"33°C / 22°C","week":"星期四","wind":"西北风 3～4级"},{"date":"2016-09-09","dayTime":"多云","night":"多云","temperature":"33°C / 22°C","week":"星期五","wind":"东风 3～4级"},{"date":"2016-09-10","dayTime":"局部多云","night":"少云","temperature":"32°C / 21°C","week":"星期六","wind":"东风 3级"},{"date":"2016-09-11","dayTime":"少云","night":"少云","temperature":"32°C / 21°C","week":"星期日","wind":"东北偏东风 3级"},{"date":"2016-09-12","dayTime":"局部多云","night":"少云","temperature":"32°C / 21°C","week":"星期一","wind":"东北偏东风 3级"},{"date":"2016-09-13","dayTime":"局部多云","night":"局部多云","temperature":"32°C / 21°C","week":"星期二","wind":"东风 3级"}]
     * humidity : 湿度：31%
     * pollutionIndex : 109
     * province : 江苏
     * sunrise : 05:42
     * sunset : 18:25
     * temperature : 31℃
     * time : 15:12
     * updateTime : 20160904152751
     * washIndex : 不适宜
     * weather : 多云
     * week : 周日
     * wind : 东北风2级
     */

    public List<Result> result;



    public List<Result> getResult() {
        return result;
    }

    public void setResult(List<Result> result) {
        this.result = result;
    }

    public static class Result {
        public String airCondition;
        public String city;
        public String coldIndex;
        public String date;
        public String distrct;
        public String dressingIndex;
        public String exerciseIndex;
        public String humidity;
        public String pollutionIndex;
        public String province;
        public String sunrise;
        public String sunset;
        public String temperature;
        public String time;
        public String updateTime;
        public String washIndex;
        public String weather;
        public String week;
        public String wind;
        /**
         * date : 2016-09-04
         * dayTime : 多云
         * night : 多云
         * temperature : 33°C / 22°C
         * week : 今天
         * wind : 东风 小于3级
         */

        public List<FutureBean> future;

        public List<FutureBean> getFuture() {
            return future;
        }

        public void setFuture(List<FutureBean> future) {
            this.future = future;
        }

        public static class FutureBean {
            public String date;
            public String dayTime;
            public String night;
            public String temperature;
            public String week;
            public String wind;



            @Override
            public String toString() {
                return "FutureBean{" +
                        "date='" + date + '\'' +
                        ", dayTime='" + dayTime + '\'' +
                        ", night='" + night + '\'' +
                        ", temperature='" + temperature + '\'' +
                        ", week='" + week + '\'' +
                        ", wind='" + wind + '\'' +
                        '}';
            }
        }

        @Override
        public String toString() {
            return "ResultBean{" +
                    "airCondition='" + airCondition + '\'' +
                    ", city='" + city + '\'' +
                    ", coldIndex='" + coldIndex + '\'' +
                    ", date='" + date + '\'' +
                    ", distrct='" + distrct + '\'' +
                    ", dressingIndex='" + dressingIndex + '\'' +
                    ", exerciseIndex='" + exerciseIndex + '\'' +
                    ", humidity='" + humidity + '\'' +
                    ", pollutionIndex='" + pollutionIndex + '\'' +
                    ", province='" + province + '\'' +
                    ", sunrise='" + sunrise + '\'' +
                    ", sunset='" + sunset + '\'' +
                    ", temperature='" + temperature + '\'' +
                    ", time='" + time + '\'' +
                    ", updateTime='" + updateTime + '\'' +
                    ", washIndex='" + washIndex + '\'' +
                    ", weather='" + weather + '\'' +
                    ", week='" + week + '\'' +
                    ", wind='" + wind + '\'' +
                    ", future=" + future +
                    '}';
        }
    }

    @Override
    public String toString() {
        return "WeathJsonBean{" +
                "msg='" + msg + '\'' +
                ", retCode='" + retCode + '\'' +
                ", result=" + result +
                '}';
    }
}
